cd $HOME/hello-world/_go-code/shop/shop-api
git pull -pv
export env="prod"
go mod tidy
# 关闭之前启动的
kill $(ps -ef|grep 'shopApi'|grep -v 'grep'|awk '{print $2}') 
go build -o shopApi
# 启动实例
nohup ./shopApi -port 18888 &
echo -e "启动成功：\n$(ps -ef |grep "shopApi")"
# 查看是否启动成功
ps -ef|grep 'shopApi'|grep -v 'grep'|awk '{print $2}'


# lsof -i:8888 根据端口号查询pid
